const program = require('commander'); //配置命令
const { createProjectVue } = require('./action.js')

const cli = () => {
    //初始化 wyz
    program.action(() => require('../config/init.js')())

    //模版
    program
        .command('create <project>')
        .alias('c') // 定义一个更短的命令行指令
        .description("创建模版，如: wyz c myapp") // 描述
        .action(pro => createProjectVue(pro))
}

module.exports = cli;